package org.ala.rpc_test.dubbo;

import java.util.ArrayList;
import java.util.List;

import org.ala.rpc_test.test_biz.OrderDO;
import org.ala.rpc_test.test_biz.OrderItemDO;
import org.apache.dubbo.config.annotation.DubboService;
import org.springframework.beans.factory.InitializingBean;

/**
 *
 *	@author ala
 *	@date 2025年4月23日
 */
@DubboService
public class TestService implements TestInterface, InitializingBean {

	
	@Override
	public void afterPropertiesSet() throws Exception {
		System.out.println("注册 TestInterface");
	}

	public List<OrderItemDO> order(OrderDO order) {
		List<OrderItemDO> list = new ArrayList<>();
		list.add(OrderItemDO.build().id(1).orderId(order.getId()));
		return list;
	}

}
